//home子路由
import { 
  Connection,
  User,
  Tickets,
  DataLine,
  Reading,
} from '@element-plus/icons-vue'

const options = [
  {
    path:'home',
    meta:{
      title:'首页',
      nopadding:true
    }
  },{
    path:'checkstatistics',
    meta:{
      title:'车辆核查统计'
    }
  },{
    path:'vehiclemanagement',
    meta:{
      title:'车辆管理'
    }
  },{
    path:'emptypage/:name',
    meta:{
      title:'空页面'
    }
  }
]


const routerName = 'main'

export default options.map(route => {
  const { path } = route
  const name = path.split("/")[0]
  route = {
    name,
    ...route,
    component:() => import( /* webpackChunkName: "[request]" */ `../../pages/${routerName}/${name}/index.vue`)
  }
  return route
})